package com.ruoyi.biz.letter.export;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.biz.letter.read.*;
import lombok.Data;

import java.util.Date;

/**
 * 地市信访对象 biz_city_letter
 *
 * @author Fei.Cong
 * @date 2024-07-12
 */
@Data
public class BizCityLetterExport {
    private static final long serialVersionUID = 1L;

    @ExcelProperty("序号")
    private Long id;

    @ExcelProperty(value ="一级分类", converter = LevelCategoryConverter.class)
    private String firstCategoryName;

    @ExcelProperty(value ="二级分类", converter = LevelCategoryConverter.class)
    private String secondCategoryName;
    /**
     * 信件编号
     */
    @ExcelProperty("信访件编号")
    private String letterNumber;

    /**
     * 类别,1-初访，2-超级访,初访，3-超级访,集体访,初访
     */
    @ExcelProperty(value = "类别")
    private String caseType;

    /**
     * 信件标题
     */
    @ExcelProperty("标题")
    private String letterTitle;

    /**
     * 登记机构
     */
    @ExcelProperty("登记机构")
    private String signDept;

    /**
     * 登记时间
     */
    @ExcelProperty("登记时间")
    private Date letterTime;

    /**
     * 信访人姓名
     */
    @ExcelProperty("姓名")
    private String letterUsername;

    /**
     * 信访人手机号
     */
    @ExcelProperty("手机号")
    private String letterPhone;

    /**
     * 重访次数
     */
    @ExcelProperty("重访次数")
    private Integer repeatVisit;

    /**
     * 是否初访,1-是，0-否
     */
    @ExcelProperty(value = "初访", converter = YesOrNoConverter.class)
    private String isVisit;

    @ExcelProperty(value = "是否有理", converter = ReasonableConverter.class)
    private String isReasonable;

    @ExcelProperty(value = "是否化解", converter = YesOrNoConverter.class)
    private String isSolve;

    @ExcelProperty(value = "是否办结", converter = YesOrNoConverter.class)
    private String isFinish;

    @ExcelProperty(value = "是否涉法涉诉", converter = YesOrNoConverter.class)
    private String isLaw;

    @ExcelProperty(value = "是否认领", converter = YesOrNoConverter.class)
    private String isClaim;

    @ExcelProperty(value = "信访目的", converter = CityPurposeConverter.class)
    private String letterPurpose;

    /**
     * 内容分类
     */
    @ExcelProperty("内容分类")
    private String letterCategory;

    /**
     * 问题属地
     */
    @ExcelProperty("问题属地")
    private String ownerArea;

    /**
     * 涉及机构
     */
    @ExcelProperty("涉及机构")
    private String referDept;

    /**
     * 投诉内容
     */
    @ExcelProperty("投诉内容")
    private String letterContent;

    /**
     * 概况信息
     */
    @ExcelProperty("概况信息")
    private String letterInfo;

    /**
     * 信访备注
     */
    @ExcelProperty("责任单位（填写到市一级，不需细化）")
    private String acceptDept;

    /**
     * 信访备注
     */
    @ExcelProperty("备注")
    private String letterRemark;

}
